package com.wangtongxiao.beans;

import java.io.FileWriter;
import java.io.IOException;

public class MyApp2 {

    public static void main(String[] args) {

        String temp = "感冒好难受呀" ;
        String path = "d:\\abc.txt";
        FileWriter fileWriter = null;
        try {
            fileWriter = new FileWriter(path,true);
            fileWriter.write(temp);
            fileWriter.flush();
            fileWriter.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }


    }


}
